﻿using System;
using System.Collections.Generic;
using System.Text;
using CodeFactory.IDAL;

namespace CodeFactory.Library.Config
{
    [Serializable]
    public class SystemInfo
    {
        [NonSerialized]
        private string defaultSavePath;

        [NonSerialized]
        private List<ConnectionInfo> connectionList;

        [NonSerialized]
        private CreateInfo createInfo;

        [NonSerialized]
        private string languagePack;

        [NonSerialized]
        private EncoderInfo sysEncoder;

        public SystemInfo()
        {
            this.defaultSavePath = System.Environment.CurrentDirectory;
            this.connectionList = new List<ConnectionInfo>();
            this.createInfo = new CreateInfo();
            this.languagePack = string.Empty;
            this.sysEncoder = new EncoderInfo();
        }

        public string DefaultSavePath
        {
            get { return this.defaultSavePath; }
            set { this.defaultSavePath = value; }
        }

        public List<ConnectionInfo> ConnectionList
        {
            get { return this.connectionList; }
            set { this.connectionList = value; }
        }

        public CreateInfo CreateInfo
        {
            get { return this.createInfo; }
            set { this.createInfo = value; }
        }

        public string LanguagePack
        {
            get { return this.languagePack; }
            set { this.languagePack = value; }
        }

        public EncoderInfo SysEncoder
        {
            get { return this.sysEncoder; }
            set { this.sysEncoder = value; }
        }

    }
}
